package com.chookss.tiku

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.chookss.tiku.entity.LiveResult
import com.chookss.tiku.entity.Subject

/**
 * Company:
 * Project:
 * Author: liuhaoge
 * Date: 2021/01/05
 * Note: 只有一个指定subject的viewmodel
 */
class OneSubjectViewModel : BasePracticeTestViewModel() {

    //题目列表
    var subject : Subject? = null
    override fun submitAnswer(subject: Subject, answers: List<String>, time: Long) = MutableLiveData<LiveResult<Any>>()

    //下载题目列表
    override fun getSubject(index: Int): LiveData<LiveResult<Subject>> {
        var liveResult = MutableLiveData<LiveResult<Subject>>()
        liveResult.postValue(LiveResult(subject))
        return liveResult
    }


}